Optimal. Leaf size=76 \[ \frac{B \sin (c+d x) \cos ^3(c+d x)}{4 d}+\frac{3 B \sin (c+d x) \cos (c+d x)}{8 d}+\frac{3 B x}{8}-\frac{C \sin ^3(c+d x)}{3 d}+\frac{C \sin (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0646908, antiderivative size = 76, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.179, Rules used = {4047, 2635, 8, 12, 2633} \[ \frac{B \sin (c+d x) \cos ^3(c+d x)}{4 d}+\frac{3 B \sin (c+d x) \cos (c+d x)}{8 d}+\frac{3 B x}{8}-\frac{C \sin ^3(c+d x)}{3 d}+\frac{C \sin (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4047
Rule 2635
Rule 8
Rule 12
Rule 2633
Rubi steps
\begin{align*} \int \cos ^5(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx &=B \int \cos ^4(c+d x) \, dx+\int C \cos ^3(c+d x) \, dx\\ &=\frac{B \cos ^3(c+d x) \sin (c+d x)}{4 d}+\frac{1}{4} (3 B) \int \cos ^2(c+d x) \, dx+C \int \cos ^3(c+d x) \, dx\\ &=\frac{3 B \cos (c+d x) \sin (c+d x)}{8 d}+\frac{B \cos ^3(c+d x) \sin (c+d x)}{4 d}+\frac{1}{8} (3 B) \int 1 \, dx-\frac{C \operatorname{Subst}\left (\int \left (1-x^2\right ) \, dx,x,-\sin (c+d x)\right )}{d}\\ &=\frac{3 B x}{8}+\frac{C \sin (c+d x)}{d}+\frac{3 B \cos (c+d x) \sin (c+d x)}{8 d}+\frac{B \cos ^3(c+d x) \sin (c+d x)}{4 d}-\frac{C \sin ^3(c+d x)}{3 d}\\ \end{align*}
Mathematica [A] time = 0.117664, size = 73, normalized size = 0.96 \[ \frac{3 B (c+d x)}{8 d}+\frac{B \sin (2 (c+d x))}{4 d}+\frac{B \sin (4 (c+d x))}{32 d}-\frac{C \sin ^3(c+d x)}{3 d}+\frac{C \sin (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.049, size = 60, normalized size = 0.8 \begin{align*}{\frac{1}{d} \left ( B \left ({\frac{\sin \left ( dx+c \right ) }{4} \left ( \left ( \cos \left ( dx+c \right ) \right ) ^{3}+{\frac{3\,\cos \left ( dx+c \right ) }{2}} \right ) }+{\frac{3\,dx}{8}}+{\frac{3\,c}{8}} \right ) +{\frac{C \left ( 2+ \left ( \cos \left ( dx+c \right ) \right ) ^{2} \right ) \sin \left ( dx+c \right ) }{3}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.925012, size = 77, normalized size = 1.01 \begin{align*} \frac{3 \,{\left (12 \, d x + 12 \, c + \sin \left (4 \, d x + 4 \, c\right ) + 8 \, \sin \left (2 \, d x + 2 \, c\right )\right )} B - 32 \,{\left (\sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )\right )} C}{96 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.484637, size = 136, normalized size = 1.79 \begin{align*} \frac{9 \, B d x +{\left (6 \, B \cos \left (d x + c\right )^{3} + 8 \, C \cos \left (d x + c\right )^{2} + 9 \, B \cos \left (d x + c\right ) + 16 \, C\right )} \sin \left (d x + c\right )}{24 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.18492, size = 189, normalized size = 2.49 \begin{align*} \frac{9 \,{\left (d x + c\right )} B - \frac{2 \,{\left (15 \, B \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{7} - 24 \, C \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{7} - 9 \, B \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{5} - 40 \, C \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{5} + 9 \, B \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{3} - 40 \, C \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{3} - 15 \, B \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 24 \, C \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 1\right )}^{4}}}{24 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]